package com.springboot.demo.design.pattern.adapter.Object;

import com.springboot.demo.design.pattern.adapter.AndroidCharge;
import com.springboot.demo.design.pattern.adapter.Ios;
import com.springboot.demo.design.pattern.adapter.IosCharge;

/**
 * 适配器接口
 *
 * @author supu
 * @date 2019-07-11 17:31
 **/
public class ChargeAdapter implements AndroidCharge {
    private IosCharge ios;

    public ChargeAdapter(Ios ios) {
        this.ios = ios;
    }

    @Override
    public void androidCharge() {
        ios.iosCharge();
    }
}
